//---------------------------------------------------------------------------

#ifndef TDataBaseH
#define TDataBaseH
#include "B01MD.H"


class TDataBase
{
	public:
		TDataBase          ( int *err,
							 char *FileName,
							 char *Reg,
							 char *PassWord,
							 char *BaseName );
		int BaseClose      ( );
		int BaseInitObject ( GBASE_OBJECT *Object,
		                     BASE_INT *pSem,
							 long mSem,
							 void*pSv,
							 long mSv,
							 void*Pr,
							 long mPr,
							 void*Sq,
							 long mSq,
							 void*Met,
							 long mMet,
							 char *Text,
							 long mText,
							 VIDEO_HEADER *Video,
							 long mVideo );
		void BaseInitQuery ( GBASE_QUERY *Query,
							 long Key,
							 int Ident );
		int BaseReadObject ( GBASE_QUERY *Query,
							 BASE_INT *Select,
							 int Fun,
							 int Read,
							 GBASE_OBJECT *Object,
							 BASE_INT *Code,
							 unsigned long Number );
		int BaseWriteObject( GBASE_OBJECT *Object,
							 int Fun);
		int BaseCloseobject( GBASE_OBJECT *Object );
		~TDataBase();
	private:
		GBASE *base;
		HINSTANCE hDll01;
		HINSTANCE hDll00;
};
//---------------------------------------------------------------------------
#endif
